<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改电池模组性能参数列表')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-modelProperty-edit" th:object="${tbPartModelProperty}">
            <input name="propertyId" th:field="*{propertyId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">模块编码：</label>
                <div class="col-sm-8">
                    <input name="propertyCode" th:field="*{propertyCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">外形：</label>
                <div class="col-sm-8">
                    <input name="propertyShape" th:field="*{propertyShape}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">尺寸(mm)：</label>
                <div class="col-sm-8">
                    <input name="propertySize" th:field="*{propertySize}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">额定容量(AH)：</label>
                <div class="col-sm-8">
                    <input name="propertyCapacity" th:field="*{propertyCapacity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">标称电压(V)：</label>
                <div class="col-sm-8">
                    <input name="propertyVoltage" th:field="*{propertyVoltage}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">额定质量(KG)：</label>
                <div class="col-sm-8">
                    <input name="propertyQuality" th:field="*{propertyQuality}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">能量密度(Wh/kg)：</label>
                <div class="col-sm-8">
                    <input name="propertyDensity" th:field="*{propertyDensity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">充电倍率(C)：</label>
                <div class="col-sm-8">
                    <input name="propertyRate" th:field="*{propertyRate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电池寿命(年)：</label>
                <div class="col-sm-8">
                    <input name="propertyLifetime" th:field="*{propertyLifetime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">单体电池编号(JSON字符串)存储单体电池信息：</label>
                <div class="col-sm-8">
                    <input name="propertyCellInformation" th:field="*{propertyCellInformation}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "modelProperty/modelProperty";
        $("#form-modelProperty-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-modelProperty-edit').serialize());
            }
        }
    </script>
</body>
</html>